<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../include/header.jsp" %>    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	
	<table border="1" style=" height:100%; width: 100%; ">
		<tr>
			<th>NO</th>
			<th>강좌일</th>			
			<th>상태</th>
			<th>강사</th>			
			<th>제목</th>
			<th>인원</th>						
		</tr>
		<c:forEach var="row" items="${map1.resistList}">
			<tr>
				<td>
					${row.idx }
				</td>
				<th>${row.class_date }</th>			
				<td>
					<c:choose>
						<c:when test="${row.state  == '0'}">
							승인전
						</c:when>
						<c:when test="${row.state  == '1'}">
							개설완료
						</c:when>
						<c:when test="${row.state  == '2'}">
							강좌종료
						</c:when>
						<c:when test="${row.state  == '3'}">
							폐강
						</c:when>								
					</c:choose>										
				</td>
				<td>
					${row.userid }
				</td>
				<td>
					<a href="${path}/class1/class1_detail.do?idx=${row.idx}">
					${row.subject}</a>
				</td>
				<th>
					${row.cnt }/10명
				</th>
			</tr>		
		</c:forEach>
	</table>	
</body>
</html>